package com.zzzyh.forumsystemclient.dao;

import com.zzzyh.forumsystemclient.model.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagMapper {
    int insert(Tag row);

    int insertSelective(Tag row);

    Tag selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Tag row);

    int updateByPrimaryKey(Tag row);

    List<Tag> list();

    List<Tag> getTagsByArticleId(Long id);

    void addTag(@Param("tagId") Integer tagId, @Param("articleId") Long articleId);
}